/**
 * Created by linxin on 2017/3/11.
 */
// import {load} from '../../utils';
// import { asyncRoutes, constantRoutes } from '@/router'

export default {
  SET_ROUTES: (state, routes) => {
    state.addRoutes = routes
    // state.routes = constantRoutes.concat(routes)
  },
  SETROUTES(states, obj) {
    states.routes = obj.routes||[];
  },
  SETADDROUTES(states, obj) {
    states.addRoutes = obj.addRoutes||[];
  },
  SET_SUBPAGES(states, subPages) {
    states.subPages = subPages||[];
  },
}
